package com.adam.seatabusiness.business.controller;


import com.adam.seatabusiness.business.service.BusinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author LiDaXing
 * @since 2023-04-03
 */
@RestController
@RequestMapping("/business/business")
public class BusinessController {

    @Autowired
    private BusinessService businessService;

    @RequestMapping(value = "/createBusiness")
    public void createBusiness(int money, String userId, String commodityCode, int point) {
        businessService.createBusiness(money, userId, commodityCode, point);
    }
}
